using System;
using L=Science.Physics.GeneralPhysics;

namespace Serway.Chapter20
{
	/// <summary>
	/// Example05: Boiling Liquid Helium
	/// Liquid helium has a very low boiling point, 4.2 K, and
	/// a very low latent heat of vaporization, 2.09 \times 10^4 J/kg.
	/// If energy is transferred to a container of boiling liquid
	/// helium from an immersed electric heater at a rate of 10.0 W,
	/// how long does it take to boil away 1.00 kg of the liquid?
	/// \Delta t = 2.09 \times 10^3 sec = 35 min.
	/// </summary>
	public class Example05
	{
		public Example05()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
		public void Compute()
		{
			L.Mass m = new L.Mass();
			m.kg = 1.0;
			L.LatentHeat lh = new L.LatentHeat();
			lh.JPERkg = 2.09E4;
			L.Heat Q = new L.Heat(m,lh);
			L.Power P = new L.Power();
			P.W = 10.0;
			double t = Q.J / P.W;
			result+=Convert.ToString(t);            
		}
	}
}
